/**
 * Holds all the information of the Liqueur product type
 * @author sdm21
 *
 */
public class Liqueurs extends Product{
	private static String type = "Liqueurs";
	private String liqueur_type;
	private String id;
	private String name;
	private double unit_price;
	private double case_price;
	private int quantity;
	private double abv;
	private String country_origin;

	/**
	 * Creates a liqueur object extending from the product class
	 * @param id String of the product ID code
	 * @param name String of the product name
	 * @param unit_price double unit price
	 * @param spirit_base String of the spirit base that is used
	 * @param case_price double of the case price 
	 * @param abv double of the alcohol content
	 * @param country_origin String of the country of origin
	 * @param liqueur_type String of the type of liqueur
	 */
	public Liqueurs(String id, String name, double unit_price, double case_price, 
			double abv, String country_origin, String liqueur_type, int quantity) {
		super(id, name, unit_price, case_price, type, abv, country_origin, 6, quantity);
		this.id = id;
		this.name = name;
		this.unit_price = unit_price;
		this.case_price = case_price;
		this.abv = abv;
		this.country_origin = country_origin;
		this.liqueur_type = liqueur_type;
		this.quantity = quantity;
		
	}
	
	public String printDetails(){
		String details = String.format("%-6s", id);
		details += String.format("%-10s", type);
		details += String.format("%-20s", name);
		details += String.format("%-5s", abv);
		details += String.format("%-14s", country_origin);
		
		details += String.format("%-36s", liqueur_type);
		
		details += String.format("%-7s", unit_price);
		details += String.format("%-7s", case_price);
		details += String.format("%-17s",quantity);
		return details;
	}
}

